from flask_script import Manager
from app import create_app
# 拿到app实例
app = create_app('default')
# 通过manager来进行app实例操作，如服务启动、端口重置等
manager = Manager(app)
# 启动程序
if __name__ == '__main__':
    manager.run()